package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MingChinaCityMapper;
import com.ruoyi.system.domain.MingChinaCity;
import com.ruoyi.system.service.IMingChinaCityService;

/**
 * 中国城市定义Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-03-12
 */
@Service
public class MingChinaCityServiceImpl implements IMingChinaCityService 
{
    @Autowired
    private MingChinaCityMapper mingChinaCityMapper;

    /**
     * 查询中国城市定义
     * 
     * @param locationId 中国城市定义主键
     * @return 中国城市定义
     */
    @Override
    public MingChinaCity selectMingChinaCityByLocationId(Long locationId)
    {
        return mingChinaCityMapper.selectMingChinaCityByLocationId(locationId);
    }

    /**
     * 查询中国城市定义列表
     * 
     * @param mingChinaCity 中国城市定义
     * @return 中国城市定义
     */
    @Override
    public List<MingChinaCity> selectMingChinaCityList(MingChinaCity mingChinaCity)
    {
        return mingChinaCityMapper.selectMingChinaCityList(mingChinaCity);
    }

    /**
     * 新增中国城市定义
     * 
     * @param mingChinaCity 中国城市定义
     * @return 结果
     */
    @Override
    public int insertMingChinaCity(MingChinaCity mingChinaCity)
    {
        return mingChinaCityMapper.insertMingChinaCity(mingChinaCity);
    }

    /**
     * 修改中国城市定义
     * 
     * @param mingChinaCity 中国城市定义
     * @return 结果
     */
    @Override
    public int updateMingChinaCity(MingChinaCity mingChinaCity)
    {
        return mingChinaCityMapper.updateMingChinaCity(mingChinaCity);
    }

    /**
     * 批量删除中国城市定义
     * 
     * @param locationIds 需要删除的中国城市定义主键
     * @return 结果
     */
    @Override
    public int deleteMingChinaCityByLocationIds(Long[] locationIds)
    {
        return mingChinaCityMapper.deleteMingChinaCityByLocationIds(locationIds);
    }

    /**
     * 删除中国城市定义信息
     * 
     * @param locationId 中国城市定义主键
     * @return 结果
     */
    @Override
    public int deleteMingChinaCityByLocationId(Long locationId)
    {
        return mingChinaCityMapper.deleteMingChinaCityByLocationId(locationId);
    }
}
